package com.agritech.factory;

import com.agritech.machines.Harvester;

/**
 * 收割机工厂类
 */
public class HarvesterFactory implements MachineFactory {
    @Override
    public AgriculturalMachine createMachine(String id, String name) {
        Harvester harvester = new Harvester();
        harvester.setId(id);
        harvester.setName(name);
        return harvester;
    }
}